package main

type Student struct {
	//interface{} 赋值，会发生逃逸，优化方案是将类型设置为固定类型，例如：string
	Name string
}

func GetStudent() *Student {
	stu := new(Student)
	stu.Name = "tom"
	return stu
}

func main() {
	GetStudent()
}
